package com.dtream.nacos.openfeig;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "depositchain-service-test", fallback = DepositHystrix.class)
public interface DepositClient {

    @RequestMapping(value = "/v1/deposit/test1")
    public String test();

    @GetMapping(value = "/v1/deposit/test2")
    public String test2();

    @PostMapping(value = "/v1/deposit/textNotory")
    public String textNotory(@RequestParam("content") String content);

    @PostMapping(value = "/v1/deposit/deployContract")
    public String deployContract();

    @PostMapping(value = "/v1/deposit/callContract")
    public String callContract(@RequestParam("name") String name,
                               @RequestParam("identity") String identity,
                               @RequestParam() String contract);
}
